package interface_test.youyong;

/**
 * 鸭子可以跑，可以飞，也可以游泳
 */
public class Duck implements Run,Swim,Fly{
    @Override
    public void fly() {
        System.out.println("鸭子在飞");
    }

    @Override
    public void run() {
        System.out.println("鸭子在跑");
    }

    @Override
    public void swim() {
        System.out.println("鸭子在游泳");
    }
}
